"use strict";
Component({
    properties: {
        name: {
            type: String,
            value: '订单tab'
        },
        paramAtoB: String,
        gitem: Object
    },
    data: {},
    methods: {
        gtogo: function (e) {
            console.log(this.properties.gitem);
            var _a = this.properties.gitem, skipurl = _a.skipurl, Is = _a.Is, isskip = _a.isskip;
            if (isskip === 1) {
                wx.navigateTo({
                    url: skipurl
                });
            }
            else {
                var newArr = skipurl.split('/');
                var url = "../" + newArr[1] + "/" + newArr[2];
                if (Is) {
                    wx.switchTab({
                        url: url
                    });
                }
                else {
                    wx.navigateTo({
                        url: url
                    });
                }
            }
        }
    }
});
